﻿using UnityEngine;
using System.Collections;


namespace UI
{

    public class UIUnionRunMapEvent : MonoBehaviour
    {
        /// <summary>
        /// 退出
        /// </summary>
        public void Exit()
        {
            ManagerController.Instance.TrySceneTransfer(ServerScene.Town, Vector3.zero, "", () =>
            {
                gameObject.GetComponent<Page>().Close();
            });
        }
        

        public void OpenChat()
        {
            string options = "playerId=";
            options += "&type="+(int)Chat.ChatType.Group;
            options += "&heroWarId=";
            options += "&playerName=";
            PageManager.Instance.OpenPage("ChatPage", options);
        }

        /// <summary>
        /// 说明
        /// </summary>
        public void Explain()
        {

        }
    }
}